from .models import Shop
from rest_framework import serializers
from api.good.serializer import GoodSerializer


class ShopSerializers(serializers.ModelSerializer):
    goods = GoodSerializer(many=True)

    class Meta:
        model = Shop
        fields = ('id', 'name', 'docs', 'phone', 'wechat', 'goods')
